package api_day05;

public class TestDemo {
    public static void main(String[] args) {
        LinkedStack stack = new LinkedStack();
        stack.push(2);
        stack.push(3);
        stack.push(4);
        stack.push(5);
        stack.push(6);
        System.out.println(stack);
        System.out.println(stack.pop());
        System.out.println(stack);
        LinkedQueue queue = new LinkedQueue();
        queue.push(1);
        queue.push(2);
        queue.push(3);
        queue.push(4);
        queue.push(5);
        System.out.println(queue);
        System.out.println(queue.peek());
        queue.pop();
        System.out.println(queue.peek());
        queue.pop();
        System.out.println(queue.peek());
        queue.pop();
        System.out.println(queue.peek());
        queue.pop();
        System.out.println(queue.peek());
        queue.pop();
        System.out.println(queue.peek());
        System.out.println(queue);
        /*BinarySortTree bt = new BinarySortTree();
        bt.add(2);
        bt.add(1);
        bt.add(3);
        bt.add(5);
        bt.add(6);
        bt.add(10);
        bt.add(20);
        bt.inOrderByRecursion(bt.root);*/
    }
}
